package org.changneng.framework.frameworkbusiness.controller;

import org.changneng.framework.frameworkbusiness.entity.Users;
import org.changneng.framework.frameworkbusiness.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UsersController {


    @Autowired
    private UsersService usersService;

    @RequestMapping("/insertUsers")
    public int insert(Users users){
        return usersService.insert(users);
    }

    @RequestMapping("/selectUsers")
    public Users select(Users users){
        return usersService.select(users);
    }
}
